package com.yuerlive.rainbow.api;

import com.yuerlive.rainbow.API;
import com.yuerlive.rainbow.entity.Anchor;
import com.yuerlive.rainbow.entity.BaseData;
import com.yuerlive.rainbow.entity.SearchData;

import java.util.List;
import java.util.Map;

import io.reactivex.Observable;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * Created by xiaoyi on 2017/5/24.
 */

public interface SearchService {
    @FormUrlEncoded
    @POST(API.OTHERS_SEARCH)
    Observable<BaseData<List<Anchor>>> getOthersSearch(@FieldMap Map<String, String> params);

    @FormUrlEncoded
    @POST(API.SEARCH)
    Observable<BaseData<SearchData>> search(@FieldMap Map<String, String> params);
}
